<?php	
$ch = curl_init();  
 
if(!isset($_GET["count"]))
	curl_setopt($ch,CURLOPT_URL,"http://twitter.com/statuses/user_timeline/".$_GET["user_timeline"].".json");
else
	curl_setopt($ch,CURLOPT_URL,"http://twitter.com/statuses/user_timeline/".$_GET["user_timeline"].".json?count=".$_GET["count"]);
 
curl_setopt($ch,CURLOPT_GET,1);  
 
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); 
 
$result = curl_exec ($ch);  
 
curl_close($ch);
 
echo $result;    
 
?>
